package com.haierp.event.inventory;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;

public class SysInventoryEventPublish implements ApplicationEventPublisherAware{

	@Autowired
	private ApplicationEventPublisher publisher;
	@Override
	public void setApplicationEventPublisher(ApplicationEventPublisher publisher) {
		this.publisher = publisher;
	}
	 public void sendSysInventory(SynInventoryEvent event) {
		 publisher.publishEvent(event);
	  }

}
